package com.yegs.jltqc.service;

import com.yegs.jltqc.TO.NamePageQuery;
import com.yegs.jltqc.TO.RpproducePageQuery;
import com.yegs.jltqc.VO.QcProduce;
import com.yegs.jltqc.VO.Report;
import com.yegs.jltqc.VO.RpProduce;
import org.springframework.data.domain.Page;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface RpProduceService {

    @Transactional(rollbackFor = Exception.class)
    RpProduce save(RpProduce rpProduce);

    List<RpProduce> list();

    Long getNext(Long id);

    Long getLast(Long id);

    RpProduce get(Long id);

    RpProduce findRpProduceByBarcode(String barcode);

    void del(Long id);

    Page<RpProduce> query(RpproducePageQuery query);

    RpProduce findRpProduceBySubBarcode(String barcode);
}
